package CAODemo;

public class Date {
    public int year ;
    public int month ;
    public int day ;
    public void setCalendar(int y,int m,int d) {
        year = y ;
        month = m ;
        day = d ;
    }
    public void printDay() {
        System.out.println(year+"."+month+"."+day);
    }
    public static void main(String[] args) {
        Date day1 = new Date() ;
        Date day2 = new Date() ;
        day1.setCalendar(2025,2,27);
        day2.setCalendar(2025,2,26);
        day1.printDay();
        day2.printDay();
    }
}
